
class WebSocketBean {
  String type;
  String data;
  WebSocketBean(this.type, this.data);
  factory WebSocketBean.fromJson(Map<String, dynamic> json) {
    return WebSocketBean(json['type'], json['data']);
  }
  Map<String, dynamic> toJson() {
    return {
      'type': type,
      'data': data,
    };
  }
}
